package com.rest.demo.functional.nashorn;

import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;

/**
 * @author Administrator
 * @decription
 * @Date 2018-01-29 17:23
 */
public class HelloWorld {

    public static void main(String[] args) throws ScriptException {
        ScriptEngine scriptEngine = new ScriptEngineManager().getEngineByName("nashorn");
        scriptEngine.eval("print('hello world')");
    }
}
